package com.example.industry.dao;

import com.example.industry.entity.User;
import com.example.industry.enums.Roles;

import java.util.List;

public interface UserDao
{
    User findById(Integer id);
    Boolean addUser(User user);
    Boolean deleteById(Integer id);
    Boolean update(User user);
    User findByEmail(String email);
    List<Integer> findProjectsByUserId(Integer userId, Roles role);
    List<Integer> findAssignTasksByUserId(Integer userId);
    List<Integer> findAcceptTaskSByUserId(Integer userId);
}
